package assignment9.Parcel4;

import assignment9.*;

public class Parcel4 {        
	class PDestination implements Destination {
	    private String label;
	    private PDestination(String whereTo) {
	    	label = whereTo;
	    }
	    public String readLabel() { 
	    	return label;
        }
    }

    public Destination dest(String s) {
         return new PDestination(s);
    }

    public static void main(String[] args) {
    	Parcel4 p = new Parcel4();
        Destination d = p.dest("及格");
        System.out.println("Destination: "+d.readLabel());
    }
}